package com.jinyu.common.enums;

/**
 * @Author: yangli
 * @Despriction:
 * @Package: com.jinyu.common.enums
 * @Date:Created in 2022/5/1 22:33
 * @Modify By:
 */
public enum ApiRestCodeEnum {

    /**
     * 成功
     */
    SUCCESS(2000),

    /**
     * 结果为空
     */
    EMPTY(2100),

    /**
     * 失败
     */
    FAIL(3000),

    /**
     * 登录失效
     */
    FAIL_NOT_LOGIN(3001);

    private int code;

    ApiRestCodeEnum(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

}
